
from mcp.server.fastmcp import FastMCP


def create_app():

    mcp = FastMCP(name="MathServer")


    @mcp.tool(description="Addition operation")
    def add(a: float, b: float) -> float:
        return a + b

    @mcp.tool(description="Multiplication operation")
    def multiply(a: float, b: float) -> float:
        return a * b

    return mcp.http_app()


app = create_app()  # Uvicorn will use this
